<template>
  <!-- 登录提示组件 -->
  <div class="edit-tips"><i class="iconfont">&#xe60e;</i>{{ props.msg }}</div>
</template>

<script setup>
  import { defineProps } from "vue";
  //props: 接收父组件传的提示信息
  const props = defineProps({
    msg: String
  })
</script>

<style scoped lang="scss">
  .edit-tips{
    height: 34px;width: 100%;
    line-height: 34px;
    background-color: #FFEDD2;
    color: #FF9700;
    text-align: center;
    margin: 20px 0 15px;
    border-radius: 4px;
    font-size: 14px;
    i{
      margin-right: 5px;
    }
  }
</style>
